<?php $this->load->library('urlutility');?>

<div class="fl w660" id="box_inside1">
  <?php 
             foreach($data as $list){?>
  <div class="item bder_b1_d5 pdt12 pdb10">
    <h1 class="blue ff_museo700 mgt0 pdl10 lheight23 cap f16"><span class="fl"><?php echo $list["name"]; ?></span>
      <div class="fl pdl10 blue">
        <?php if(count($list["star"])>0){ for($i=1;$i<=$list["star"];$i++){?>
        <img width="12" height="11" class="pdr4" src="<?php echo base_url(); ?>public/images/star_01.png">
        <?php }}if($list["star"]<5){ for($i=$list["star"];$i<5;$i++){?>
        <img width="12" height="11" class="pdr4" src="<?php echo base_url(); ?>public/images/hidden-star-05.png">
        <?php	}	
                            }?>
      </div>
      <br>
      <em class="ff_museo500 gray lighter cap f13"><?php echo $list["provide"]; ?></em></h1>
    <a href="<?php echo $this->urlutility->gethotel_information($list['id'],$list['name'],'?from='.$_GET['from'].'&to='.$_GET['to'].'&room='.$_GET['room']);?>"><img width="97" height="75" src="<?php echo base_url()."uploads/hotel/".$list["avatar"]; ?>" alt="<?php echo "Best of Myanmar - ".$list["name"]; ?>" title="<?php echo "Best of Myanmar - ".$list["name"] ?>" class="fl mgr8 pdl10"/></a>
    <div class="fl w273 pdr20 black descriptionhotel"><strong class="f14">
      <?php if($list['category']==0)echo "Updating...";
		  															  if($list['category']==1)echo "<span class='fl mgt-2'>Hotel - Wifi</span>";
		  															  if($list['category']==2)echo "Hotel";
																	  if($list['category']==3)echo "Hotel - Wifi in Public Area";
																	  if($list['category']==4)echo "Resort";
																	  if($list['category']==5)echo "Guest House";?>
      <?php if($list['category']==1){?>
      <img class="mgt-9 fl" src="<?php echo base_url()?>public/images/BOM_WIFI.gif"/>
      <?php }?>
      </strong><br>
      <span class="justify item"><?php echo substr($list["description"],0,185); ?> ... <a href="<?php echo $this->urlutility->gethotel_information($list['id'],$list['name'],'?from='.$_GET['from'].'&to='.$_GET['to'].'&room='.$_GET['room']);?>" class="blue">more »</a></span></div>
    <div class="fr txt_center ff_museo700 w60 f11"><strong class="f16 linethrought">&nbsp;$<?php echo $list['oldprice'] ?>&nbsp;</strong><br>
      <strong class="f18 orange">$ <?php echo $list["minprice"] ?> </strong><br>
      for 1 night <a class="ff_museo500 bgr_143167 f14 white pdt4 pdb3 mgt4 item" href="<?php echo $this->urlutility->gethotel_information($list['id'],$list['name'],'?from='.$_GET['from'].'&to='.$_GET['to'].'&room='.$_GET['room']);?>">DETAILS</a></div>
  </div>
  <?php }?>
</div>
